package com.atguigu.mapper;

import com.atguigu.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-01-21
 * @Description:
 * @Version: 1.0
 */
@Mapper
public interface EmpMapper {
    /**
    * @Author:liuaojun
    * @Date:2025-01-21 09:46
    * @Description:根据ID查询员工
    */
    Employee getEmpById(int EmpId);

    /**
    * @Author:liuaojun
    * @Date:2025-01-21 11:15
    * @Description:更新员工
    */
    void updateEmp(Employee emp);

    /**
    * @Author:liuaojun
    * @Date:2025-01-21 11:25
    * @Description:增加
    */
    void insertEmp(Employee emp);

    /**
    * @Author:liuaojun
    * @Date:2025-01-21 11:28
    * @Description：查询所有
    */
    List<Employee> selectEmps();

    /**
    * @Author:liuaojun
    * @Date:2025-01-21 11:34
    * @Description:更具ID删除员工
    */
    void deleteEmpById(int EmpId);

}
